<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definition" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
  
  <process id="process" name="process1" isExecutable="true">
  
    <startEvent id="startevent1" name="Start" />
    
    <callActivity id="callActivity1" name="Call activity" calledElement="callActivityProcess">
      <multiInstanceLoopCharacteristics isSequential="false" camunda:collection="assignees" camunda:elementVariable="assignee"></multiInstanceLoopCharacteristics>
    </callActivity>
    
    <boundaryEvent id="boundaryerror1" cancelActivity="true" attachedToRef="callActivity1">
      <errorEventDefinition errorRef="errorId1"></errorEventDefinition>
    </boundaryEvent>
    
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="callActivity1" />
    
    <endEvent id="endevent1" name="End" />
    
    <sequenceFlow id="flow2" name="" sourceRef="callActivity1" targetRef="endevent1"/>
    
    <userTask id="handleErrorTask" name="Handle Error"/>
    
    <sequenceFlow id="flow3" name="" sourceRef="boundaryerror1" targetRef="handleErrorTask"/>
    
    <endEvent id="endevent2" name="End"/>
    
    <sequenceFlow id="flow4" name="" sourceRef="handleErrorTask" targetRef="endevent2"/>
    
  </process>
  
</definitions>